package com.pactera.madp.cp.controller.sidebar.mine;

import com.pactera.madp.common.core.util.R;
import com.pactera.madp.common.security.annotation.Inner;
import com.pactera.madp.cp.api.vo.MgrCustAssetsVo;
import com.pactera.madp.cp.service.MgrCustService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Inner
@RestController
@RequestMapping("/mgr-cust")
@AllArgsConstructor
@Api(value = "mgr-cust", tags = "管户资产统计")
public class MgrCustController {

    private final MgrCustService mgrCustService;

    @ApiOperation(value = "查询管户资产总额")
    @GetMapping("/assets")
    public R<MgrCustAssetsVo> getMgrCustAssets(String jobNo) {
        return R.ok(mgrCustService.getMgrCustAssets(jobNo));
    }

}
